package com.lecyon.farm.vo.base;

import com.lecyon.farm.common.constant.CommonConstant;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotBlank;

/**
 * 基础编辑vo
 *
 * @author Yao Zheng
 * @Date 2019/12/2 14:28
 */
@Data
public class BaseModifyVo {

    @ApiModelProperty(name = "userToken", value = "令牌", required = true)
    @NotBlank(message = "权限认证失败,令牌不能为空")
    @Length(min = CommonConstant.MIN_LENGTH_FIELD, max = CommonConstant.MAX_LENGTH_REMARK_FIELD, message = "令牌字段长度必须在{min} ~ {max}之间")
    protected String userToken;
}
